Open
Conversation
It seems that there is a bug in computing the S matrix that affects the compulation of the derivative matrix H. As, such a new function has been developed to compute S. Moreover, the code is hardwired to solve the problem 6.7 in the book "Computational Methods for Electric Power Systems" by Mariesa Crow, 1st edition. In particular, it only accepts the measurements in that problem. So, the code is expanded to accommodate any sets of measurements. A test file "test_se_Ex_6_17.m" is provided that solves example 6.17 in the above 2nd edit of the book. The file shows the difference in computing H between the original, which is edited to allow more measurements, and the modified code. The modified code produced results that coincide with the solution of example 6.17 in the book.
Member
|
Since the Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
In test_se.m file solves problem 6.6 in the book "Computational Methods for Electric Power Systems"
by Mariesa Crow, which seems to be the first edition of the book. In the 2nd edition the problem's number
changed to 9. Since the solution is not available, I tried using the code on example 6.17,
which is a 3-bus system similar to problem 9 previously mentioned. However, the code is hardwired
for problem 9 and needs to be changed in several places. For example, real and reactive power demands
at bus 3 (P3, Q3) are not defiend as measurements, so they need to be added. Consequently,
the files:
test_se.m
run_se.m
doSE.m
outputsesoln.m
should be modified to include the new parameters, which is simple to do.
Unfortunately, just accommodating the new parameters in the code does not yield the same intermediate
calus in the solution steps of example 6.17. This is because the derivative matrix (H) has
some wrong values. This is traced back to computing the complex power matrix S.
As such, I created a new function to compute it (cmptSmat.m). So, the code is expanded to accommodate any sets of measurements. A test file "test_se_Ex_6_17.m" is provided that solves example 6.17 in the above 2nd edit of the book. The file shows the difference in computing H between the original, which is edited to allow more measurements, and the modified code. The modified code produced results that coincide with the solution of example 6.17 in the book. I can provide snapshots of example 6.17 solution upon request, since I cannot upload them here.